package com.imti.service.impl;

import com.imti.mapper.ExamManageMapper;
import com.imti.model.Exam;
import com.imti.service.ExamManageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ExamManageServiceImpl implements ExamManageService {
    @Resource
    ExamManageMapper examManageMapper;

    @Override
    public List<Exam> findAllExam() {
        return examManageMapper.findAllExam();
    }

    @Override
    public int addExamById(Exam exam) {
        return examManageMapper.addExamById(exam);
    }

    @Override
    public Exam updateExamsById(Integer id) {
        return examManageMapper.updateExamsById(id);
    }

    @Override
    public int update(Exam exam) {
        return examManageMapper.update(exam);
    }
}
